package com.zyn.rsgl.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.time.LocalTime;

@Data
@TableName("schedule_detail")
public class ScheduleDetail implements Serializable{
    private static final long serialVersionUID = 1L;

    @TableId("id")
    private String id;

    /**
     * 排班ID
     */
    @TableField("schedule_id")
    private String scheduleId;

    /**
     * 星期几
     */
    @TableField("day_of_week")
    private String dayOfWeek;

    /**
     * 上班时间
     */
    @TableField("start_time")
    @JsonFormat(pattern = "HH:mm:ss")
    private LocalTime startTime;

    /**
     * 下班时间
     */
    @TableField("end_time")
    @JsonFormat(pattern = "HH:mm:ss")
    private LocalTime endTime;

    /**
     * 是否为工作日
     */
    @TableField("is_workday")
    private String isWorkday;
}
